package com.qinsilk.axon.inventory.command

data class InventoryCreatedEvent(
        var inventoryId: String,
        var productName: String,
        var initialQuantity: Int
){
        constructor(): this("", "", 0)
}

data class StockInRecordedEvent(
        var inventoryId: String,
        var quantity: Int,
        var reason: String,
        var eventId: String
){
        constructor(): this("", 0, "", "")
}

data class StockOutRecordedEvent(
        var inventoryId: String,
        var quantity: Int,
        var reason: String,
        var eventId: String
){
        constructor():this("", 0, "", "")
}

data class OperationCancelledEvent(
        var inventoryId: String,
        var eventId: String,
        var eventType: String,
        var quantity: Int
){
        constructor():this("", "", "", 0)
}
